﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="TransactionReceipts.aspx.vb" Inherits="Secure.TransactionReceipts" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>NENA Transaction Receipts</title>
	<meta content="JavaScript" name="vs_defaultClientScript" />
	<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema" />
	<link href="Styles.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
<!-- #Include File="Header.aspx" -->
			<asp:Label ID="lblTitle" Runat="server" CssClass="NenaHeading">
				Viewing Transaction Receipts
			</asp:Label>
			<h3>This Form Allows you to:</h3>
			<br />
			<asp:label id="Label1" Runat="server">View Transactions receipts by status (filtered)</asp:label><br />
			<hr />    
			<div>
			<b>Filter Transaction records by Payment Status</b>
                    <asp:DropDownList ID="ddl_PaymentStatus" runat="server" AutoPostBack="True">
                        <asp:ListItem Value="Completed">Paid by PayPal</asp:ListItem>
                        <asp:ListItem Value="Paid by Cheque">Paid by Cheque</asp:ListItem>
                        <asp:ListItem>Transferred To PayPal</asp:ListItem>
                </asp:DropDownList>
                    <br />
                    <ul>
                        <li>Paid by PayPal - A PayPal transaction was Completed</li>
                        <li>Paid by Cheque - Payment was made by Cheque</li>
                        <li>Transferred To PayPal - A PayPal transaction was started, but not completed (Not Paid)</li>
                    </ul>
                    <asp:ListView runat="server"  ID="listCompletedTransactions">
                        <LayoutTemplate>
                                <table ID="itemPlaceholderContainer" runat="server" border="1" 
                                    style="background-color: #FFFFFF;border-collapse: collapse;border-color: #999999;border-style:none;border-width:1px;font-family: Verdana, Arial, Helvetica, sans-serif;" width="100%">
                                    <tr style="background-color:#DCDCDC;color: #000000;">
                                        <td>
                                        <th>TransactionID</th>
                                        <th>MemberID</th>
                                        <th>PaymentMethod</th>
                                        <th>PayPalFee</th>
                                        <th>Amount Paid</th>
                                        <th>Payment Type</th>
                                        <th>Payment Status</th>                                                                                        
                                        <th>Payment Reason</th>
                                        <th>Payment Date</th>                                                                                        
                                        </td>
                                    </tr>
                                    <tr ID="itemPlaceholder" runat="server">
                                    </tr>
                                </table>
                    </LayoutTemplate>
                    <AlternatingItemTemplate>
                        <tr style="background-color:#FFF8DC;">
                            <td>
                                <asp:Label ID="Label2" runat="server" 
                                    Text='<%# GetMemberName(Eval("Member_ID")) %>' />
                            </td>
                            <td>                           
                                <asp:Label ID="Label4" runat="server" 
                                    Text='<%# Eval("Member_ID") %>' />
                            </td>                            
                            <td>                           
                                <asp:Label ID="TransactionPaymentID" runat="server" 
                                    Text='<%# Eval("TransactionPaymentID") %>' />
                            </td>
                            <td>                           
                                <asp:Label ID="Label1" runat="server" 
                                    Text='<%# Eval("PaymentMethod") %>' />
                            </td>                            
                            <td>                           
                                <asp:Label ID="Label3" runat="server" 
                                    Text='<%# Eval("PayPalFee") %>' />
                            </td>                            
                            <td>                           
                                <asp:Label ID="Label5" runat="server" 
                                    Text='<%# Eval("PaymentAmount") %>' />
                            </td>
                            <td>                           
                                <asp:Label ID="Label6" runat="server" 
                                    Text='<%# Eval("PaymentType") %>' />
                            </td>
                             <td>                           
                                <asp:Label ID="Label7" runat="server" 
                                    Text='<%# Eval("PaymentStatus") %>' />
                            </td>
                             <td>                           
                                <asp:Label ID="Label9" runat="server" 
                                    Text='<%# Eval("PaymentReason") %>' />
                            </td>
                             <td>                           
                                <asp:Label ID="Label10" runat="server" 
                                    Text='<%# Eval("PaymentDate") %>' />
                            </td>
                        </tr>
                    </AlternatingItemTemplate>
                    <EmptyDataTemplate>
                        <table id="Table2" runat="server" 
                            style="background-color: #FFFFFF;border-collapse: collapse;border-color: #999999;border-style:none;border-width:1px;">
                            <tr>
                                <td>
                                    No Transactions Available.</td>
                            </tr>
                        </table>
                    </EmptyDataTemplate>
                    <ItemTemplate>
                        <tr style="background-color:#eae1bb;">
                            <td>
                                <asp:Label ID="Label2" runat="server" 
                                    Text='<%# GetMemberName(Eval("Member_ID")) %>' />
                            </td>
                            <td>                           
                                <asp:Label ID="Label4" runat="server" 
                                    Text='<%# Eval("Member_ID") %>' />
                            </td>                            
                            <td>                           
                                <asp:Label ID="TransactionPaymentID" runat="server" 
                                    Text='<%# Eval("TransactionPaymentID") %>' />
                            </td>
                            <td>                           
                                <asp:Label ID="Label1" runat="server" 
                                    Text='<%# Eval("PaymentMethod") %>' />
                            </td>                            
                            <td>                           
                                <asp:Label ID="Label3" runat="server" 
                                    Text='<%# Eval("PayPalFee") %>' />
                            </td>                            
                            <td>                           
                                <asp:Label ID="Label5" runat="server" 
                                    Text='<%# Eval("PaymentAmount") %>' />
                            </td>
                            <td>                           
                                <asp:Label ID="Label6" runat="server" 
                                    Text='<%# Eval("PaymentType") %>' />
                            </td>
                             <td>                           
                                <asp:Label ID="Label7" runat="server" 
                                    Text='<%# Eval("PaymentStatus") %>' />
                            </td>
                             <td>                           
                                <asp:Label ID="Label9" runat="server" 
                                    Text='<%# Eval("PaymentReason") %>' />
                            </td>
                             <td>                           
                                <asp:Label ID="Label10" runat="server" 
                                    Text='<%# Eval("PaymentDate") %>' />
                            </td>                        </tr>
                    </ItemTemplate>
                    </asp:ListView>
    </div>
    </form>
</body>
</html>
